package com.ruoyi.statistics.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.statistics.api.UserService;
import com.ruoyi.users.domain.CfUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;


@RestController
public class UserController extends BaseController {

    @Autowired
    private UserService userService;


    @GetMapping("/user/list/date")
    public TableDataInfo list(CfUser cfUser){
        List<CfUser> list = userService.selectCfUserListByDate(cfUser);
        System.out.println(list.toString());
        return getDataTable(list);
    }





}
